package com.zsc.graduate.qovipan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 枫树下奶罐
 * @version 1.0.0
 * @date 2022/2/11 17:12
 */
@Controller
public class NaviChangeController {
//    如果处于登录状态，则直接替换掉顶部导航的登录和注册
    @GetMapping("/head-navi")
    public String loggedMode(Model model){
        model.addAttribute("headPic", "测试账号");
        model.addAttribute("exit", "退出");
        return "head-navi";
    }
//
}
